package com.api.shopapi.service;

import com.api.shopapi.entity.AskAnswerGroup;
import com.api.shopapi.entity.AskAnswerRecord;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface AskAnswerRecordService {

    int insert(AskAnswerRecord askAnswerRecord);


    int delete( String askAnswerRecordCode);

    int update(AskAnswerRecord askAnswerRecord);


    AskAnswerRecord getByAskAnswerRecordCode(String askAnswerRecordCode);

    AskAnswerRecord getByAskAnswerNameCode(String askAnswerNameCode);

    List<AskAnswerRecord> ListByPracticeSiteCode(String practiceSiteCode);

    PageInfo<AskAnswerRecord> PageByGovernmentCodePracticeSiteCode(int pageIndex, int pageSize,
                                                                   String governmentCode, String practiceSiteCode);

}
